package org.zju.demo.shoppingdemo.utils;

/**
 * Created by ZJDX on 2015/9/8.
 */
public class Constant {

    private Constant() {

    }

    private static String BASEURL = "http://10.214.143.25:8080/api";
    public static String LOGIN_URL = BASEURL + "/user/login";
    public static String REGISTER_URL = BASEURL + "/user/register";
    public static String GETUSERINFO_URL = BASEURL + "/user/getInfo";
    public static String UPDATEUSER_URL = BASEURL + "/user/modify";
    public static String GETGOODS_URL = BASEURL + "/shopping/getGoods";
    public static String GETPRODUCT_URL = BASEURL + "/shopping/getSpecificProduct";
    public static String BUYPRODUCT_URL = BASEURL + "/shopping/buyProducts";
    public static String QUERYALLORDER_URL = BASEURL + "/order/queryAll";
    public static String QUERYDELIVERYSTATUS_URL = BASEURL + "/order/getDeliveryStatus";
    public static String UPDATEORDER_URL = BASEURL + "/order/setOrderStatus";
    public static String CARStauts_URL = BASEURL + "/management/getCarsStatus";
    public static String UAVStauts_URL = BASEURL + "/management/getUavsStatus";
    public static String QUERYHOT_URL = BASEURL + "/shopping/getHot";

    public static String GET_METHOD = "GET";
    public static String POST_METHOD = "POST";

    public static int COMMAND_REGISTER = 0x00;
    public static int COMMAND_LOGIN = 0x01;
    public static int COMMAND_GETUSERINFO =0x02;
    public static int COMMAND_UPDATEUSER = 0x03;
    public static int COMMAND_QUERYGOODS = 0x10;
    public static int COMMAND_QUERYPRODUCT = 0x11;
    public static int COMMAND_BUY = 0x12;
    public static int COMMAND_QUERYORDER = 0x13;
    public static int COMMAND_QUEYRDELIVERY = 0x14;
    public static int COMMAND_SETORDER = 0x15;
    public static int COMMAND_GETHOT = 0x16;

    public static String PREFERENCE_FILE = "Userinfo";


}
